package com.lsy.jetpackdemo

import retrofit2.Retrofit
import javax.inject.Inject

/**
 * @Author Lsy
 * @Date 2022/10/12 9:29
 */
class Repository @Inject constructor(retrofit: Retrofit) {
    private val service = retrofit.create(ApiService::class.java)
    suspend fun getTopArticles(): ResponseData<MutableList<Article>> {
        return service.getTopArticles()
    }
}